<div class="container">
    <form method="post" class="form-x " action="{url('infoSave')}">
        <div class="panel dux-box">
            <div class="panel-head clearfix">
                论坛设置
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="label">论坛名称</div>
                    <div class="field">
                        <input type="text" class="input" id="site_title" name="site_title" value="{$info.site_title}" size="60" data-validate="required:必填">
                        <div class="input-note">显示在网站头部标题</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">论坛副标题</div>
                    <div class="field">
                        <input type="text" class="input" id="site_subtitle" name="site_subtitle" value="{$info.site_subtitle}" size="60" data-validate="required:必填">
                        <div class="input-note">显示在网站头部标题后的信息</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">论坛地址</div>
                    <div class="field">
                        <input type="text" class="input" id="site_url" name="site_url" size="60" value="{$info.site_url}">
                        <div class="input-note">论坛地址只做调用使用</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">论坛关键词</div>
                    <div class="field">
                        <input type="text" class="input" id="site_keywords" name="site_keywords" size="60" value="{$info.site_keywords}" data-validate="required:必填">
                        <div class="input-note">针对搜索引擎收录的关键词</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">论坛描述</div>
                    <div class="field">
                        <textarea class="input" id="site_description" name="site_description" rows="2" cols="60" data-validate="required:必填">{$info.site_description}</textarea>
                        <div class="input-note">搜索引擎收录的网站描述</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">论坛介绍</div>
                    <div class="field">
                        <textarea class="input" id="site_introduction" name="site_introduction" rows="2" cols="60" data-validate="required:必填">{$info.site_introduction}</textarea>
                        <div class="input-note">显示在论坛右侧的介绍信息</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">站长邮箱</div>
                    <div class="field">
                        <input type="text" class="input" id="site_email" name="site_email" value="{$info.site_email}" size="60" data-validate="required:必填">
                        <div class="input-note">显示在网站头部标题后的信息</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">论坛统计</div>
                    <div class="field">
                        <textarea class="input" id="site_statistics" name="site_statistics" rows="2" cols="60">{$info.site_statistics}</textarea>
                        <div class="input-note">放置论坛统计代码</div>
                    </div>
                </div>
            </div>
            <div class="panel-foot">
                <div class="form-button">
                    <button class="button bg-main" type="submit">保存</button>
                    <button class="button bg" type="reset">重置</button>
                </div>
            </div>
        </div>
        <br>
    </form>
    <form method="post" class="form-x " action="{url('uploadSave')}">
        <div class="panel dux-box">
            <div class="panel-head clearfix">
                上传设置
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <div class="label">
                        最大文件大小
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="UPLOAD_SIZE" name="UPLOAD_SIZE" size="60" data-validate="required:必填" value="{$upload['UPLOAD_SIZE']}">
                        <div class="input-note">单位：M，该设置为程序限制，最大上传具体为服务器限制</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        上传文件格式
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="UPLOAD_EXTS" name="UPLOAD_EXTS" size="60" data-validate="required:必填" value="{$upload['UPLOAD_EXTS']}">
                        <div class="input-note">用英文逗号分割，部分格式如无法上传请检查服务器</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        缩图开关
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <!--if{$upload['THUMB_STATUS']}-->
                            <label class="button active">
                                <input name="THUMB_STATUS" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <label class="button">
                                    <input name="THUMB_STATUS" value="1" type="radio">
                                    <!--{/if}-->
                                    <span class="icon icon-check"></span> 开启</label>
                                <!--if{!$upload['THUMB_STATUS']}-->
                                <label class="button active">
                                    <input name="THUMB_STATUS" checked="checked" value="0" type="radio">
                                    <!--{else}-->
                                    <label class="button">
                                        <input name="THUMB_STATUS" value="0" type="radio">
                                        <!--{/if}-->
                                        <span class="icon icon-times"></span> 关闭</label>
                        </div>
                        <div class="input-note">开启后缩略图设置才会生效</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        水印开关
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <!--if{$upload['WATER_STATUS']}-->
                            <label class="button active">
                                <input name="WATER_STATUS" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <label class="button">
                                    <input name="WATER_STATUS" value="1" type="radio">
                                    <!--{/if}-->
                                    <span class="icon icon-check"></span> 开启</label>
                                <!--if{!$upload['WATER_STATUS']}-->
                                <label class="button active">
                                    <input name="WATER_STATUS" checked="checked" value="0" type="radio">
                                    <!--{else}-->
                                    <label class="button">
                                        <input name="WATER_STATUS" value="0" type="radio">
                                        <!--{/if}-->
                                        <span class="icon icon-times"></span> 关闭</label>
                        </div>
                        <div class="input-note">开启后水印设置才会生效</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        缩图方式
                    </div>
                    <div class="field">
                        <select class="input" name="THUMB_TYPE" id="THUMB_TYPE">
                            <!--if{$upload['THUMB_TYPE'] == 1}-->
                            <option value="1" selected>
                                <!--{else}-->
                                <option value="1">
                                    <!--{/if}-->
                                    等比例缩放</option>
                                <!--if{$upload['THUMB_TYPE'] == 2}-->
                                <option value="2" selected>
                                    <!--{else}-->
                                    <option value="2">
                                        <!--{/if}-->
                                        缩放后填充</option>
                                    <!--if{$upload['THUMB_TYPE'] == 3}-->
                                    <option value="3" selected>
                                        <!--{else}-->
                                        <option value="3">
                                            <!--{/if}-->
                                            居中裁剪</option>
                                        <!--if{$upload['THUMB_TYPE'] == 4}-->
                                        <option value="4" selected>
                                            <!--{else}-->
                                            <option value="4">
                                                <!--{/if}-->
                                                左上角裁剪</option>
                                            <!--if{$upload['THUMB_TYPE'] == 5}-->
                                            <option value="5" selected>
                                                <!--{else}-->
                                                <option value="5">
                                                    <!--{/if}-->
                                                    右下角裁剪</option>
                                                <!--if{$upload['THUMB_TYPE'] == 6}-->
                                                <option value="6" selected>
                                                    <!--{else}-->
                                                    <option value="6">
                                                        <!--{/if}-->
                                                        固定尺寸缩放</option>
                        </select>
                        <div class="input-note">选择开启缩图后有效</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        缩放宽度
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="THUMB_WIDTH" name="THUMB_WIDTH" size="60" data-validate="required:必填" value="{$upload['THUMB_WIDTH']}">
                        <div class="input-note">单位：像素</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        缩放高度
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="THUMB_HEIGHT" name="THUMB_HEIGHT" size="60" data-validate="required:必填" value="{$upload['THUMB_HEIGHT']}">
                        <div class="input-note">单位：像素</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        水印图片
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="WATER_IMAGE" name="WATER_IMAGE" size="60" data-validate="required:必填" value="{$upload['WATER_IMAGE']}">
                        <div class="input-note">位于public/watermark下的图片文件</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        水印位置
                    </div>
                    <div class="field">
                        <select class="input" name="WATER_POSITION" id="WATER_POSITION">
                            <!--if{$upload['WATER_POSITION'] == 1}-->
                            <option value="1" selected>
                                <!--{else}-->
                                <option value="1">
                                    <!--{/if}-->
                                    左上角水印</option>
                                <!--if{$upload['WATER_POSITION'] == 2}-->
                                <option value="2" selected>
                                    <!--{else}-->
                                    <option value="2">
                                        <!--{/if}-->
                                        上居中水印</option>
                                    <!--if{$upload['WATER_POSITION'] == 3}-->
                                    <option value="3" selected>
                                        <!--{else}-->
                                        <option value="3">
                                            <!--{/if}-->
                                            右上角水印</option>
                                        <!--if{$upload['WATER_POSITION'] == 4}-->
                                        <option value="4" selected>
                                            <!--{else}-->
                                            <option value="4">
                                                <!--{/if}-->
                                                左居中水印</option>
                                            <!--if{$upload['WATER_POSITION'] == 5}-->
                                            <option value="5" selected>
                                                <!--{else}-->
                                                <option value="5">
                                                    <!--{/if}-->
                                                    居中水印</option>
                                                <!--if{$upload['WATER_POSITION'] == 6}-->
                                                <option value="6" selected>
                                                    <!--{else}-->
                                                    <option value="6">
                                                        <!--{/if}-->
                                                        右居中水印</option>
                                                    <!--if{$upload['WATER_POSITION'] == 7}-->
                                                    <option value="7" selected>
                                                        <!--{else}-->
                                                        <option value="7">
                                                            <!--{/if}-->
                                                            左下角水印</option>
                                                        <!--if{$upload['WATER_POSITION'] == 8}-->
                                                        <option value="8" selected>
                                                            <!--{else}-->
                                                            <option value="8">
                                                                <!--{/if}-->
                                                                下居中水印</option>
                                                            <!--if{$upload['WATER_POSITION'] == 9}-->
                                                            <option value="9" selected>
                                                                <!--{else}-->
                                                                <option value="9">
                                                                    <!--{/if}-->
                                                                    右下角水印</option>
                        </select>
                        <div class="input-note">选择开启缩图后有效</div>
                    </div>
                </div>
            </div>
            <div class="panel-foot">
                <div class="form-button">
                    <button class="button bg-main" type="submit">保存</button>
                    <button class="button bg" type="reset">重置</button>
                </div>
            </div>
        </div>
        <br>
    </form>
    <div class="panel dux-box  active">
        <div class="panel-head">
            性能设置
        </div>
        <form method="post" class="form-x" action="{url('performanceSave')}">
            <div class="panel-body">
                <div class="form-group">
                    <div class="label">
                        网站模式
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <!--if{$performance['DEBUG']}-->
                            <label class="button active">
                                <input name="DEBUG" value="true" checked="checked" type="radio">
                                <!--{else}-->
                                <label class="button">
                                    <input name="DEBUG" value="true" type="radio">
                                    <!--{/if}-->
                                    <span class="icon icon-check"></span> 调试模式</label>
                                <!--if{!$performance['DEBUG']}-->
                                <label class="button active">
                                    <input name="DEBUG" checked="checked" value="false" type="radio">
                                    <!--{else}-->
                                    <label class="button">
                                        <input name="DEBUG" value="false" type="radio">
                                        <!--{/if}-->
                                        <span class="icon icon-check"></span> 上线模式</label>
                        </div>
                        <div class="input-note">调整为上线模式后所有错误页面将统一处理为404</div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        伪静态开关
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <!--if{$performance['REWRITE_ON']}-->
                            <label class="button active">
                                <input name="REWRITE_ON" value="true" checked="checked" type="radio">
                                <!--{else}-->
                                <label class="button">
                                    <input name="REWRITE_ON" value="true" type="radio">
                                    <!--{/if}-->
                                    <span class="icon icon-check"></span> 开启</label>
                                <!--if{!$performance['REWRITE_ON']}-->
                                <label class="button active">
                                    <input name="REWRITE_ON" checked="checked" value="false" type="radio">
                                    <!--{else}-->
                                    <label class="button">
                                        <input name="REWRITE_ON" value="false" type="radio">
                                        <!--{/if}-->
                                        <span class="icon icon-times"></span> 关闭</label>
                        </div>
                        <div class="input-note">请查看 <a href="#" class="text-main" target="_blank">【URL规则】</a> 说明</div>
                    </div>
                </div>


                <div class="form-group">
                    <div class="label">
                        日志记录
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <!--if{$performance['LOG_ON']}-->
                            <label class="button active">
                                <input name="LOG_ON" value="true" checked="checked" type="radio">
                                <!--{else}-->
                                <label class="button">
                                    <input name="LOG_ON" value="true" type="radio">
                                    <!--{/if}-->
                                    <span class="icon icon-check"></span> 开启</label>
                                <!--if{!$performance['LOG_ON']}-->
                                <label class="button active">
                                    <input name="LOG_ON" checked="checked" value="false" type="radio">
                                    <!--{else}-->
                                    <label class="button">
                                        <input name="LOG_ON" value="false" type="radio">
                                        <!--{/if}-->
                                        <span class="icon icon-times"></span> 关闭</label>
                        </div>
                        <div class="input-note">记录网站出错日志</div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        加密KEY
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="SAFE_KEY" name="SAFE_KEY" size="60" data-validate="required:必填" value="{$performance.SAFE_KEY}">
                        <div class="input-note">用户外部通讯的加密基准</div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        COOKIE前缀
                    </div>
                    <div class="field">
                        <input type="text" class="input" id="SAFE_KEY" name="COOKIE_PREFIX" size="60" data-validate="required:必填" value="{$performance.COOKIE_PREFIX}">
                        <div class="input-note">避免多个站点冲突</div>
                    </div>
                </div>

            </div>
            <div class="panel-foot">
                <div class="form-button">
                    <div id="tips"></div>
                    <button class="button bg-main" type="submit">保存</button>
                    <button class="button bg" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
</br>